<?php if (!empty($neighbors['prev'])) {
    echo $html->link('Prev', array('action' => 'view', $neighbors['prev'][$model]['id']),
        array( 'class' => 'button prev', 'title' => $neighbors['prev'][$model][$title]));
} ?>&nbsp;
<?php if (!empty($neighbors['next'])) {
    echo $html->link('Next', array('action' => 'view', $neighbors['next'][$model]['id']),
        array( 'class' => 'button next', 'title' => $neighbors['next'][$model][$title]));
} ?>